package com.example.springcloud.alibaba.client;

import com.example.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value="order-service")
public interface OrderClient {
    @GetMapping(value = "/order/create")
    CommonResult create(@RequestParam("userId")Long userId, @RequestParam("productId")Long productId) ;
}
